﻿<UserControl x:Class="Kodi.Picturethrill.ImagePreviewControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="64" d:DesignWidth="300"
             Background="{x:Null}" MouseDoubleClick="OnUserControl_MouseDoubleClick">
    <Grid>
        <RadioButton Name="previewRadioButton" Height="16" Width="16" HorizontalAlignment="Left" Margin="0,24,0,0" VerticalAlignment="Top" Checked="OnPreviewRadioButton_Checked" />
        <Image Name="previewImage" Height="64" HorizontalAlignment="Left" Margin="22,0,0,0" Stretch="Fill" VerticalAlignment="Top" Width="64" />

        <Label Name="nameLabel"
               Content="Bing" 
               Height="28" 
               HorizontalAlignment="Left" 
               Margin="92,0,0,0" 
               VerticalAlignment="Top" />
        <Label Name="urlLabel" 
               Content="http://bing.com" 
               Height="28" 
               HorizontalAlignment="Left" 
               Margin="92,24,0,0" 
               VerticalAlignment="Top" 
               />
        

        <!-- TODO: This is needed so that selection works over the whole rectangular area. Maybe Rectange control will work better here? Any other way? -->
        <Label Name="nameLabel2"
               Content="77777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777" FontSize="72" Height="64" VerticalAlignment="Top">
            <Label.Foreground>
                <SolidColorBrush />
            </Label.Foreground>
        </Label>
    </Grid>
</UserControl>
